cellrendererpixbuf: do not clear the icon helper twice
authorPaolo Borelli <pborelli@gnome.org>
Wed, 12 Aug 2015 06:12:36 +0000 (08:12 +0200)
committerPaolo Borelli <pborelli@gnome.org>
Wed, 12 Aug 2015 19:40:04 +0000 (21:40 +0200)
commit7281803169561f3932d23e9fe0c56826ccdd3b7e
tree4b24f442e33bcbaeedc76537c1ec0e48ed1b1438
parenta1332167fb277dfb54a7111b73d594f2d753c7a9
cellrendererpixbuf: do not clear the icon helper twice

Do not call _gtk_icon_helper_clear explicitely when the properties
are set, since the corresponding _gtk_icon_helper_set_* method
already calls clear internally.
While at it rename the reset function to make it clear that it
is calling notify for the previous image type and avoid the
notification if the image type is not changing.
gtk/gtkcellrendererpixbuf.c